package com.ruicar.afs.cloud.apply.common.feign;

import com.alibaba.fastjson.JSONObject;
import com.ruicar.afs.cloud.apply.common.dto.ApplySigningInfoDTO;
import com.ruicar.afs.cloud.common.core.feign.annotations.AfsFeignClear;
import com.ruicar.afs.cloud.common.core.util.IResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description: 银行签约丶短信接口
 * @Author: TIANKAI
 * @Date: 2020/8/11
 */
@FeignClient(name = "ApplySigningFeign", url = "${com.greatwall.systems.signing-system.url}")
public interface ApplySigningFeign {


    /**
     * @Description: 四要素验证
     * @Param: [signingInfoDTO]
     * @return: com.alibaba.fastjson.JSONObject
     * @Author: TIANKAI
     * @Date: 2020/8/11
     */
    @PostMapping(value = "/pay/verify")
    @AfsFeignClear(true)
    JSONObject doVerify(@RequestBody ApplySigningInfoDTO signingInfoDTO);

    /**
     * @Description: 短信验证
     * @Param: [signingInfoDTO]
     * @return: com.alibaba.fastjson.JSONObject
     * @Author: TIANKAI
     * @Date: 2020/8/11
     */
    @GetMapping(value = "/pay/sign")
    @AfsFeignClear(true)
    IResponse doSign(@RequestBody ApplySigningInfoDTO signingInfoDTO);
}
